Hello, |
Re: Expand the Multi value drop down box
Attached is a demo that shows one way to make the multiList wider using a label. //Demo /*Demo to show how to make multiList wider*/ DB attrShow = create "Attributes" string attrNames[100] DBE attrList = multiList(attrShow, "Attributes:",5, attrNames ,0) label(attrShow,"This line is just to make the above multiList much much wider.") realize attrShow |
Re: Expand the Multi value drop down box I can see no way of dynamically increasing the depth of a list or multiList DBE, once the dialog is realized. That makes sense since 'relealize' defines the dimensions of the box and its elements. You can, however, adjust the DBE depth when the user makes the dialog itself taller or shorter. Thus, if the user wants to see more options she can manually drag the bottom of the box.
string List[4]
DB db = create("test")
DBE dbe = list(db, "Test", 4, List, 0)
label(db, "Status")
realize db
if (confirm("Adjust List with Dialog?"))
setExtraHeightShare(dbe, 1.0)
show db
|
Re: Expand the Multi value drop down box One method I use to adjust the size is to enclose the listbox inside a Frame. Constraining the listbox "inside" the frame. |